package com.mall.order;

import com.mall.order.dto.*;

/**
 * create-date: 2019/7/30-上午9:13
 * 订单相关业务
 */
public interface OrderCoreService {

    /**
     * 创建订单
     * @param request
     * @return
     */
    CreateOrderResponse createOrder(CreateOrderRequest request);

    /**
     * 取消订单
     * @param request
     * @return
     */
    CancelOrderResponse cancelOrder(CancelOrderRequest request);
    /*
     * @description: 显示用户订单
     * @return: com.mall.order.dto.OrderListResponse
     * @author: mabinbin
     * @date: 2021/8/25
     */
    OrderListResponse showOrder(OrderListRequest orderListRequest);


    /**
     * 删除订单
     * @param request
     * @return
     */
    DeleteOrderResponse deleteOrder(DeleteOrderRequest request);


    /**
     *  支付成功时，更新订单状态，更新锁定库存
     * @param request
     * @return
     */
    PayOrderSuccessResponse payOrderSuccess(PayOrderSuccessRequest request);
}
